<?php
/**
 * Created by PhpStorm.
 * User: ChengChaogui
 * Date: 2016/12/27
 * Time: 10:47
 */

namespace App\Framework\Enum;

class ManagerHandleLogLevelEnum
{
    const GENERAL = 1;
    const WARNING = 2;
    const DANGER = 3;


    public static $dataMap = [
        self::GENERAL => '普通',
        self::WARNING => '警告',
        self::DANGER => '严重',
    ];

    public static function getName($key){
        if(array_key_exists($key,self::$dataMap)){
            return self::$dataMap[$key];
        }

        return '';
    }
}